<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript" src="/js/jquery.js"></script>
<script>
$(document).ready(function(){
	<%	
	String url = org.apache.struts2.ServletActionContext.getRequest().getServletPath() ;
	String pathKey = url.substring(url.indexOf("/") + 1,url.indexOf("."));	
	%>
	$(".menu a").attr("class","");
	$("#<%= pathKey %>").attr("class","active");
});
</script>
<div class="header">
    <div class="block_header">
      <div class="logo"><a href="index.html"><img src="/images/logo.gif" width="277" height="143" border="0" alt="logo" /></a></div>
      <div class="search">
        <form id="form1" name="form1" method="post" action="">
          <label><span>
            <input name="q" type="text" class="keywords" id="textfield" maxlength="50" value="Search..." />
            </span>
            <input name="b" type="image" src="/images/search.gif" class="button" />
          </label>
        </form>
      </div>
      <div class="menu">
        <ul>
          <li><a id="index" href="/index.html" class="active"><span>首页</span></a></li>
          <li><a id="about" href="/guanyu.html"><span>关于我们</span></a></li>
          <li><a id="services" href="/fuwu.html"><span>游戏</span></a></li>
          <li><a id="contact" href="/lianxi.html"><span> 联系我们 </span></a></li>
        </ul>
        <div class="clr"></div>
      </div>
      <div class="clr"></div>
    </div>
  </div>